package com.test.controller;

import com.test.service.MyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * @Aurher: QiaoHang
 * @Description:
 * @Data: 2019/9/12 9:44
 * @Modified By:
 */
@Controller
public class MyController {

    @Autowired(required = true)
    MyService myService;

    public void print(){
        System.out.println("service----- "+myService);
    }

}
